import request from '@/utils/request'

// 查询商户配置列表
export function listAppMerchantAccountInfo(query) {
  return request({
    url: '/app/appMerchantAccountInfo/list',
    method: 'get',
    params: query
  })
}

// 查询商户配置详细
export function getAppMerchantAccountInfo(id) {
  return request({
    url: '/app/appMerchantAccountInfo/' + id,
    method: 'get'
  })
}

// 新增商户配置
export function addAppMerchantAccountInfo(data) {
  return request({
    url: '/app/appMerchantAccountInfo',
    method: 'post',
    data: data
  })
}

// 修改商户配置
export function updateAppMerchantAccountInfo(data) {
  return request({
    url: '/app/appMerchantAccountInfo',
    method: 'put',
    data: data
  })
}

// 删除商户配置
export function delAppMerchantAccountInfo(id) {
  return request({
    url: '/app/appMerchantAccountInfo/' + id,
    method: 'delete'
  })
}
